#!/usr/bin/env python

__author__ = 'rx.wen218@gmail.com'

class Policy:
    """
    Policy class defines the behavior that a blog provider must follow
    update_interval: specifies the time amount in second that the provider must sleep after make a update request (includes add)
    query_interval: specifies the time amount in second that the provider must sleep after make a query request
    """
    def __init__(self, update_interval=0, query_interval=0):
        self.update_interval = update_interval
        self.query_interval = query_interval
